<?php 
	
	class SlideShow_Helper {
	    public function showLogo($id) {
	        $baseUrl = Zend_Controller_Front::getInstance()->getBaseUrl();
	        $attribute = array('rel'=>'','alt'=>'','title'=>'');
	  		$model = new Model_File_File();
	  		$data = $model->getItemsByCat($id);
	  		foreach ($data as $item)
	  		{
	  		    if($item['link']=='')
	  		   		echo '<li><img src="'.$baseUrl.'/public/images/files/'.$id.'/'.$item['name'].'"></li>';
	  		   	else
	  		   	{
	  		   	    if($item['rel']!='')
	  		   	        $attribute['rel'] = ' rel = "'.$item['rel'].'" ';
	  		   	    if($item['alt']!='')
	  		   	    	$attribute['alt'] = ' alt = "'.$item['alt'].'" ';
	  		   	    if($item['title']!='')
	  		   	    	$attribute['title'] = ' title = "'.$item['title'].'" ';
	  		   	   	echo '<li><a href="'.$item['link'].'"'.$attribute['rel'].$attribute['alt'].$attribute['title'].'><img src="'.$baseUrl.'/public/images/files/'.$id.'/'.$item['name'].'"></a></li>';
	  		   	};
	  		}    
	    }
	}
?>